package com.pattern.design.designpattern.Moban;

import com.pattern.design.designpattern.MainActivity;

/**
 * author:harisucici on 2018/10/11 08:21
 * email:harisucici@gmail.com
 * name:
 * todo:
 */
public abstract class ComputerMoban {

    /**
     * Power on.
     */
    protected void powerOn(){
        MainActivity.systemOut("power_on");
    }

    /**
     * Check.
     */
    protected void check(){
        MainActivity.systemOut("check_sys");
    }

    /**
     * Load.
     */
    protected void load(){
        MainActivity.systemOut("load_os");
    }

    /**
     * Login.
     */
    protected  void login(){
        MainActivity.systemOut("login");
    }

    /**
     * Start.
     */
    public void start(){
        powerOn();
        check();
        load();
        login();
        MainActivity.systemOut("computer_start");
    }

}
